package com.baizhi.springboot;

import org.apache.activemq.command.ActiveMQQueue;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import javax.jms.Queue;

@SpringBootApplication
@MapperScan("com.baizhi.springboot.dao")
@EnableTransactionManagement
@ServletComponentScan
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
    @Bean
    public Queue createQueue() {
        return new ActiveMQQueue("ActiveMQ-Queue");
    }
}
